/*
 * FileName: BussinessModelDao.java
 *
 * Company: 
 * Copyright 2011-2012 (C) Ultrapower Software CO., LTD. All Rights Reserved.
 */
package com.jmeurope.dao.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.jmeurope.dao.BussinessModelDao;
import com.jmeurope.dao.IbatisBaseDao;
import com.jmeurope.model.BussinessModel;

/**
 * <p>
 * Description: 
 * </p>
 *
 * @author wangwei  leo_java@163.com
 * @version 1.0

 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * Dec 25, 2011 4:34:08 PM          wangwei        1.0         To create
 * </p>
 *
 * @since 
 * @see     
 */
@Repository
public class BussinessModelDaoImpl extends IbatisBaseDao implements BussinessModelDao{

	@SuppressWarnings("unchecked")
	public List<BussinessModel> getBussinessModelsByUserId(Integer  id) throws SQLException {
		return getSqlMapClientTemplate().getSqlMapClient().queryForList("selectBussibessModelsByUserId", id);
	}

	@Override
	public void delete(Integer id) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public BussinessModel find(Integer id) throws SQLException {
		return (BussinessModel)getSqlMapClientTemplate().getSqlMapClient().queryForObject("selectBussibessModelsById", id);
	}

	@Override
	public List<BussinessModel> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@SuppressWarnings("unchecked")
	public List<BussinessModel> findByConditions(Map conditions) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer insert(BussinessModel entity) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void update(BussinessModel entity) throws Exception {
		// TODO Auto-generated method stub
		
	}

}
